<?php
return [
    'app' => 'run',
    // 存储路由的配置key
    'router' => [
        'key' => 'router',
        // 路由前缀
        'routerPrefix' => [
            'test' => 'test/home'
        ]
    ],
    // RPC服务路由配置
    'rpcRouter' => [
        'key' => 'rpcRouter'
    ],
    // 查看 API 文档 地址
    'api_path' => 'e10adc3949ba59abbe56e057f20f883e',
    'saveRuntimeLog' => true,
    '404_error_page' => app() -> getRootPath() . 'public'. DIRECTORY_SEPARATOR . '404.html',
    'favicon' => app() -> getRootPath() . 'public'. DIRECTORY_SEPARATOR .'77321040_p0_master1200.jpg',
    'resources' => [
        'file' => [
            'rule' => 'static',
            'rootPath' => app() -> getRootPath() . 'public'
        ]
    ],
    'appMonitoring' => [
        'toEmails' => [
        ],
        'enable' => false,
        'delayTime' => 24 * 60 * 60,
        'diskFree' => 1,
        'MemFree' => 1,
    ],
    'i18n' => [
        'zh-cn' => app() -> getRootPath() . 'public' . DIRECTORY_SEPARATOR . 'zh-cn.json',
        'en-us' => app() -> getRootPath() . 'public' . DIRECTORY_SEPARATOR . 'en-us.json',
    ],

    // 异常回调
    'debug' => true,
    // 异常模板文件
    'exception_tpl' => '',
    'exceptionHandle' => '' // \app\exception\HttpException::class
];